home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / BUERGUTL.ARJ / LDIR.ARC / LDIR.DOC < prev   
Text File  |  1991-03-25  |  5KB  |  182 lines

  1.  
  2. LDIR Command                               Version 4.4
  3. -----------                               Mar 25, 1991
  4.  
  5. Purpose:   To display the files in one or all directories of a disk.
  6.  
  7. Format:    LDIR  [d:][\path]filespec]  [/?... /?]
  8.  
  9. Remarks:   If no operands are supplied, the files in the current path
  10.        and in the current directory are displayed. You may specify
  11.        another drive using the d: operand, and/or a path name,
  12.        and/or a file specification. Wildcard characters * and ? are
  13.        permitted in the filespec operand.
  14.  
  15.        All available memory is used. As many files as fit in memory
  16.        are sorted and displayed.
  17.  
  18.        The /? refers to optional processing switches. You may use
  19.        one or more of the following:
  20.  
  21.  
  22. Sort options:
  23.  
  24.       /D   sort by file Date
  25.       /F   sort by File name
  26.       /N   no sorting of DIR entries
  27.       /S   sort by file Size
  28.       /X   sort by eXtension
  29.  
  30. File criteria:
  31.  
  32.       /A   include Attributes, e.g. S=system, R=readonly, H=hidden
  33.       /H   include files with the Hidden attribute
  34.       /M   display only Modified files, i.e with Archive bit off
  35.       /P   include all Paths starting with the current directory
  36.  
  37. Display options:
  38.  
  39.       /C   Clear screen first, and after any "... more" prompts
  40.       /W   Wait after screen full, ask for any key after 20 lines displayed
  41.       /?   display usage syntax
  42.  
  43.  
  44. LDIR Command                               Version 4.4
  45. -----------                               Mar 25, 1991
  46.  
  47.                     Examples
  48.                     --------
  49.  
  50.  
  51.       o  Display all files, in filename order, on the current drive:
  52.  
  53.         LDIR
  54.  
  55.  
  56.       o  Display all files in the subdirectory \TEST\PGMS on drive B:
  57.  
  58.         LDIR B:\TEST\PGMS
  59.  
  60.       o  Display only those files with an extension of .COM in the
  61.          current directory which is not a root directory:
  62.  
  63.         LDIR *.COM
  64.  
  65.  
  66.       o  Display all modified files in all subdirectories on current drive
  67.          and place the output in the file called DIRLIST on drive C:
  68.  
  69.         LDIR /M/P >C:DIRLIST
  70.  
  71. LDIR Command                               Version 4.4
  72. -----------                               Mar 25, 1991
  73.  
  74.                    Changing defaults
  75.                    -----------------
  76.  
  77.     The default option is to sort by file name. You may use DEBUG
  78.     to permanently change this default. The bytes called FLAG1
  79.     and FLAG2 contain the option indicators.
  80.  
  81.     Field    Offset    Option    Hex and bit values
  82.     -----    ------    ------    -----------------------------------
  83.     FLAG1    0111      A    01  .... ...1
  84.               H    02  .... ..1.
  85.               C    04  .... .1..
  86.               D    08  .... 1...
  87.               X    10  ...1 ....
  88.               F    40  .1.. ....
  89.               S    80  1... ....
  90.  
  91.     FLAG2    0112      M    01  .... ...1
  92.               W    02  .... ..1.
  93.               P    20  ..1. ....
  94.  
  95.     For example, to change to defaults to /A/P/D/F/W:
  96.     FLAG1 becomes 01 + 08 + 40,  (A and D and F),
  97.     FLAG2 becomes 02 + 20 = 22,  (W and P).
  98.  
  99.         DEBUG LDIR.COM
  100.         -e 10d 49         (should originally be 40)
  101.         -e 10e 22         (should originally be 00)
  102.         -w
  103.         -q
  104.  
  105.  
  106.  
  107.                      Notes
  108.                      -----
  109.  
  110.     Written for the IBM PC using DOS 2.0 or later, including DOS 3.3.
  111.  
  112.     For private use only. May not be sold.
  113.  
  114.     Copyright 1986-89 by Vernon D. Buerg. All rights reserved.
  115.  
  116.          139 White Oak Circle
  117.          Petaluma, CA  94952
  118.          BBS: (707) 778-8944
  119.          CompuServe: 70007,1212
  120.  
  121.  
  122. LDIR Command                               Version 4.4
  123. -----------                               Mar 25, 1991
  124.  
  125.                 Version History
  126.                 ---------------
  127.  
  128.        Version 2.3, August 10, 1985
  129.         Correct some problems with path\filespec syntax
  130.         Adds /M option to list modified files only
  131.  
  132.        Version 2.4, October 28, 1985
  133.         Adds /W option to pause after 20 lines are displayed
  134.         Speeds up screen displays but defeats redirection
  135.  
  136.        Version 2.5, November 5, 1985
  137.         Minor changes for color displays
  138.  
  139.        Version 2.6, January 4, 1986
  140.         By popular demand, ability for redirection and
  141.         use of PrtSc restored at the price of slower displays.
  142.         Problem changing current directory fixed.
  143.  
  144.        Version 2.7, February 15, 1986
  145.         Minor corrections to command line syntax checking
  146.  
  147.        Version 2.8, April 22, 1986
  148.         A special request version that does NO sorting of
  149.         the directory entries. The directory is displayed
  150.         in its original order. This is now the /N option.
  151.  
  152.        Version 2.9, May 12, 1986
  153.         Corrects problem changing the current directory of
  154.         the current drive when LDIR is used for a subdir on
  155.         another drive.
  156.  
  157.        Version 3.0, June 4, 1986
  158.         Corrects a problem when DEBUG is used to change
  159.         the default option switches. The attribute mask
  160.         used to read directories was not being updated.
  161.  
  162.        Version 3.1, Dec 28, 1986
  163.        Version 3.2, June 12, 1987
  164.         Corrects problem specifying a filespec when in a
  165.         subdirectory, e.g. LDIR *.ASM failed.
  166.  
  167.        Version 4.1, Jan 25, 1989
  168.         Expands the number of file names from 1000 to an amount
  169.         determined by available memory. Approximately 64 bytes
  170.         per file name is required. In other words, 64K bytes of
  171.         memory is required for each 1000 files.
  172.  
  173.        Version 4.3, Dec 14, 1989
  174.         Change display of bytes used and free to allow values
  175.         over 100 million; add commas. Also correct failure to
  176.         clear the screen if the /C option is set by DEBUG.
  177.  
  178.        Version 4.4, Mar 25, 1991
  179.         Correct handling of /N no sort option when /A or /H
  180.         is also specified.
  181.  
  182.